/**
 * 
 */
package com.iwords.service.persistence;

import java.util.List;
import java.util.Map;

import javax.ejb.Local;

import com.iwords.service.object.SysLibWordsEntity;

/**
 * @author       BOLIN.HBC 
 * @time         2011-3-12    
 * @description  SysLibWords-Persistence       
 */
@Local
public interface SysLibWordsPersistence {
	
	public void updateWords(SysLibWordsEntity word) ;
	void create(SysLibWordsEntity user);

	void edit(SysLibWordsEntity user);

	void remove(SysLibWordsEntity user);

	SysLibWordsEntity find(Object id);

	SysLibWordsEntity find(String email);

	List<SysLibWordsEntity> findAll();

	List<SysLibWordsEntity> findWordsBySysLibId(Long sysLibId);

	public SysLibWordsEntity findWordByWordId(Long wordId);

	List<SysLibWordsEntity> findRange(int[] range);

	int count();

	public List<SysLibWordsEntity> getAllManagerWords(String sZiMu, int page);

	public Long getAllManagerWordsCount( );
	//获取下一个单词
	public Map<String,Object> getNextWord(Long wordid, int page, boolean isFirst);
}
